import matplotlib.pyplot as plt
import numpy as np

# AE-M
# tp=21
# fn=15
# fp=10
# tn=954

# AE-S
# tp=19
# fn=17
# fp=13
# tn=951

# LSTM-S
# tp=26
# fn=10
# fp=66
# tn=898

# CNN-S
tp=23
fn=13
fp=29
tn=935

pre = tp/(tp+fp)
recall = tp/(tp+fn)
f1 = 2 *(pre*recall)/(pre+recall)

print('Pre', pre)
print('Recall', recall)
print('F1', f1)